import request from '@/utils/request'


export const getTreeList = ()=>
    request({
        url:'/recordList',
        method:'get',
})
export const addRecord = (record)=>
    request({
        url:'/addRecord',
        method:'post',
        data:{'record':record}
})
export const deleteRecord = (id)=>
    request({
        url:'/deleteRecord/'+id,
        method:'delete',
        data:{'id':id}
})
